<?php
include("../inc/config.php");

mysql_select_db($logondb);	
if($_POST['email'])
{
$email = $_POST['email'];
$checkemail = mysql_query("SELECT username,sha_pass_hash FROM account WHERE email='$email'");
$row = mysql_fetch_array($checkemail);
$numrows = mysql_num_rows($checkemail);
if ($numrows!=0) {
$name = $row['username'];
$password = $row['sha_pass_hash'];

// ????????? ????????
$subject = "?????? ??????";
$message = "??????? $name, ???? e-mail ? ???????? , ?????? ??? ??? ????????? ?????? ?????? .
?????????? ?? ????? ?????? :
Username: $name
Password: $password

tnx ,
yourdomein.com";

mail($email, $subject, $message, "From: <golike@mail.com>nX-Mailer:PHP");
echo "<center>asd.</center>";
}else{
echo "<center>nestava .</center>";
}
}
?>
<html>
<head>
<title>????????? ???????</title>
</head>
<body>
<center>
??????? e-mail-? ? ????? ?? ?? ??????????? ??? ??? ? ??? ?? ?? ???????? ?????? ?????? ?? ?????? ???? ?????.<br />
<form action="forgot.php" method="POST">
E-mail Address: <input type="text" name="email" size="15" />
<input type="submit" value="Send!" />
</form>
</center>
</body>
</html>
